find_package(QT NAMES Qt5 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui)

add_executable(wlr-display
  main.cpp
)

target_link_libraries(wlr-display
    PRIVATE
    Qt${QT_VERSION_MAJOR}::Core
    Qt${QT_VERSION_MAJOR}::Gui
    libwayqt
    libgammaeffects
)

install(TARGETS wlr-display DESTINATION ${CMAKE_INSTALL_BINDIR})
